import { createRouter,createWebHashHistory } from "vue-router";

const routes=[
    {
        
        path:'/',
        redirect:'/index'
    },
    {
        path:'/index',
        name:'index',
        //首页
        component:()=>import('../views/index/index.vue')
    },
    {
        path:'/house',
        name:'house',
        //首页
        component:()=>import('../views/index/index.vue')
    },
    {
        path:'/PersonalCenter',
        name:'PersonalCenter',
        //个人中心
        component:()=>import('../views/PersonalCenter/index.vue')
    },
    //服务人员详情
    {
        path:'/PersonalDetail',
        name:'PersonalDetail',
        //个人中心
        component:()=>import('../views/PersonalDetail/index.vue')
    },
     //分类
     {
        path:'/classification',
        name:'classification',
        //个人中心
        component:()=>import('../views/classification/index.vue')
    },

]

const router = createRouter ({
    history:createWebHashHistory(),
    routes
})

export default router
